.market-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;

  .market-header {
    margin-bottom: 24px;
    
    .search-container {
      display: flex;
      align-items: center;
      gap: 16px;
      background: #fff;
      padding: 16px;
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);

      .publish-btn {
        padding: 8px 24px;
        background: #319A19;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 14px;

        &:hover {
          background: #2a8616;
        }
      }

      .search-wrapper {
        display: flex;
        width: 40%;
        gap: 8px;
        margin-left: auto;

        .search-input {
          flex: 1;
          padding: 8px 12px;
          border: 1px solid #dcdfe6;
          border-radius: 4px;
          font-size: 14px;

          &:focus {
            outline: none;
            border-color: #319A19;
          }

          &::placeholder {
            color: #c0c4cc;
          }
        }

        .search-btn {
          padding: 8px 24px;
          background: #319A19;
          color: white;
          border: none;
          border-radius: 4px;
          cursor: pointer;
          transition: all 0.3s;
          font-size: 14px;

          &:hover {
            background: #2a8616;
          }
        }
      }
    }
  }

  .content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;    
    column-gap: 24px;  
    margin-bottom: 24px;
  }

  .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;

    .page-btn {
      min-width: 32px;
      height: 32px;
      padding: 0 12px;
      border: 1px solid #d9d9d9;
      background: white;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;

      &:hover {
        border-color: #319A19;
        color: #319A19;
      }

      &.active {
        background: #319A19;
        border-color: #319A19;
        color: white;
      }
    }
  }
}

.market-detail-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;

  .detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    .detail-header {
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid #f0f0f0;

      .title {
        font-size: 20px;
        color: #303133;
        margin: 0 0 12px;
        font-weight: 500;
      }

      .meta-info {
        display: flex;
        gap: 24px;
        color: #909399;
        font-size: 14px;

        .status {
          color: #319A19;
        }
      }
    }

    .detail-content {
      .info-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;

        .info-group {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 20px;

          .info-item {
            display: flex;
            align-items: flex-start;

            .label {
              color: #909399;
              margin-right: 8px;
              min-width: 100px;
              flex-shrink: 0;
            }

            .value {
              color: #303133;
              flex: 1;
            }
          }
        }
      }

      .remarks {
        .label {
          color: #909399;
          margin-bottom: 8px;
        }

        .value {
          color: #303133;
          line-height: 1.6;
          white-space: pre-wrap;
        }
      }
    }

    .detail-footer {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid #f0f0f0;

      .accept-btn {
        padding: 10px 32px;
        background: #319A19;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s;

        &:hover {
          background: #2a8616;
        }
      }

      .return-btn {
        padding: 10px 32px;
        background: #f5f7fa;
        color: #909399;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s;

        &:hover {
          background: #e9ecef;
        }
      }
    }
  }
}

